@model WalkingTec.Mvvm.Mvc.Admin.ViewModels.ActionLogVMs.ActionLogListVM
@inject IStringLocalizer<Program> Localizer;

<wt:searchpanel vm="@Model" reset-btn="true">
    <wt:row items-per-row=" ItemsPerRowEnum.Three">
        <wt:combobox field="Searcher.LogType" empty-text="@Localizer["Sys.All"]" />
        <wt:textbox field="Searcher.ITCode" />
        <wt:textbox field="Searcher.ActionUrl" />
    </wt:row>
    <wt:row items-per-row=" ItemsPerRowEnum.Three">
        <wt:datetime field="Searcher.ActionTime" type="DateTime" range="true" />
        <wt:textbox field="Searcher.IP" />
        <wt:textbox field="Searcher.Duration" />
    </wt:row>
</wt:searchpanel>
<button onclick="re()">刷新</button>
<wt:grid vm="@Model" auto-search="false" />

<!-- WTM默认页面 Wtm buidin page-->
<script>

    function re() {
        $.get('/_Admin/ActionLog/Search', function (resp) {
            layui.table.reload('wtTable_@Model.UniqueId', {data:resp.Data});
        });
    }
</script>
